home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Magic of Interactive Entertainment
/
The Magic of Interactive Entertainment - Disc 2.iso
/
dosdemos
/
swluftw
/
installs.bat
< prev
next >
Wrap
DOS Batch File
|
1990-10-28
|
5KB
|
131 lines
echo off
REM Multiple Disk install program, part 1, 2 disk version
cls
if "%1" == "" goto DriveNeeded
if %1 == c: goto MakeDirectory
if %1 == C: goto MakeDirectory
if %1 == d: goto MakeDirectory
if %1 == D: goto MakeDirectory
if %1 == e: goto MakeDirectory
if %1 == E: goto MakeDirectory
if %1 == f: goto MakeDirectory
if %1 == F: goto MakeDirectory
if %1 == g: goto MakeDirectory
if %1 == G: goto MakeDirectory
if %1 == h: goto MakeDirectory
if %1 == H: goto MakeDirectory
if %1 == i: goto MakeDirectory
if %1 == I: goto MakeDirectory
if %1 == j: goto MakeDirectory
if %1 == J: goto MakeDirectory
if %1 == k: goto MakeDirectory
if %1 == K: goto MakeDirectory
if %1 == l: goto MakeDirectory
if %1 == L: goto MakeDirectory
if %1 == m: goto MakeDirectory
if %1 == M: goto MakeDirectory
if %1 == n: goto MakeDirectory
if %1 == N: goto MakeDirectory
if %1 == o: goto MakeDirectory
if %1 == O: goto MakeDirectory
if %1 == p: goto MakeDirectory
if %1 == P: goto MakeDirectory
:InvalidDrive
echo "%1" is an invalid drive name. Please use the drive's letter
echo followed by a colon:
goto Example
:DriveNeeded
echo Please specify which drive to install demo of "Secret Weapons" on,
echo for example:
:Example
echo
echo installs c:
goto End
:MakeDirectory
echo ╔═══════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Demo of ║
echo ║ ║
echo ║ Secret Weapons ║
echo ║ of the ║
echo ║ Luftwaffe (TM) ║
echo ║ ║
echo ║ Hard Disk Install Utility ║
echo ║ ║
echo ║ ║
echo ║ This program will install all "Secret Weapons" files into ║
echo ║ a directory called "SWDEMO" on drive %1. If you do not wish ║
echo ║ to do this, then press Ctrl-C now. ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════╝
echo
pause
echo
if exist %1\SWDEMO\*.* goto DirectoryExists
mkdir %1\SWDEMO
goto CopyFiles
:DirectoryExists
echo WARNING: The directory %1\SWDEMO already exists. Press Ctrl-C
echo now if you don't want to overwrite the contents of
echo that directory.
echo
pause
echo
:CopyFiles
echo Setting up subdirectories...
mkdir %1\SWDEMO\AC
mkdir %1\SWDEMO\CP
mkdir %1\SWDEMO\FX
echo Copying files to %1\SWDEMO...
copy *.fnt %1\SWDEMO > NUL
copy sfx.sfx %1\SWDEMO > NUL
copy adlib.sfx %1\SWDEMO > NUL
copy gring.gob %1\SWDEMO > NUL
copy squares.gob %1\SWDEMO > NUL
copy swotl*.* %1\SWDEMO > NUL
copy lucas.log %1\SWDEMO > NUL
copy demo.mis %1\SWDEMO > NUL
copy readme.bat %1\SWDEMO > NUL
copy read.me %1\SWDEMO > NUL
if not exist %1\SWDEMO\swotl.exe goto InstallError
if not exist %1\SWDEMO\demo.mis goto InstallError
copy ac\*.* %1\SWDEMO\AC > NUL
copy cp\*.* %1\SWDEMO\CP > NUL
copy fx\*.* %1\SWDEMO\FX > NUL
if not exist %1\SWDEMO\FX\PLANEFXS.PAC goto InstallError
%1
cd \swdemo
cls
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Demo of ║
echo ║ ║
echo ║ "Secret Weapons" has been successfully installed onto your ║
echo ║ hard disk. ║
echo ║ ║
echo ║ To run the demo of "Secret Weapons", enter CD \SWDEMO ║
echo ║ then enter SWOTL ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════╝
goto End
:InstallError
echo ERROR: Installation of "Secret Weapons" into %1\SWDEMO was unsuccessful.
echo This might be because your hard disk is full. "Secret Weapons"
echo demo needs at least 720K of free disk space.
:End
echo